package com.edison.demo.service;


import java.util.List;
import java.util.concurrent.CompletableFuture;

/**
 * @author edison
 */
public interface DataService<T> {




    /**
     *  initial mock data
     * @param number data number
     * @return list
     */
    CompletableFuture<List<T>>  initData(int number);


    /**
     * batch insert
     * @param list data list
     * @return updated records
     */
    CompletableFuture<Integer> batchInsert(List<T> list);
}
